home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 63142 / 63142.xpi / older / tkp26.xpi / chrome / content / overlay.js < prev   
Text File  |  2010-01-24  |  994b  |  29 lines

  1. var ketkpin = {
  2.   onLoad: function() {
  3.     // initialization code
  4.     this.initialized = true;
  5.     this.strings = document.getElementById("ketkpin-strings");
  6.   },
  7.  
  8.   onMenuItemCommand: function(e) {
  9.       var my_url=window.content.location.href;
  10.       alert(my_url);
  11.       window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
  12.      // window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
  13.   },
  14.  onMenuItemCommand2: function(e) {
  15.       var my_url=window.content.location.href;
  16.       var my_custom=prompt("Masukkan Nama TKP yang di inginkan");
  17.       alert(my_custom);
  18.       window.content.location.href="http://ketkp.in/index-exp.php?url="+escape(my_url);
  19.      // window.location="http://ketkp.in/index-exp.php?url="+escape(myurl);
  20.   },
  21.  
  22.   onToolbarButtonCommand: function(e) {
  23.     // just reuse the function above.  you can change this, obviously!
  24.     ketkpin.onMenuItemCommand(e);
  25.   }
  26. };
  27.  
  28. window.addEventListener("load", ketkpin.onLoad, false);
  29.